<?php
class Index extends Controller {

    function __construct() {
        parent::__construct();
    }
    function index() {
		$sql=new sql();
		$sql->connect();
		
		if(@$_COOKIE['attemp']==3)
		{
			header("Location: ".URL."public/error.php?error=10101010");
		}
		authentication('Login');
		
                if(GET('reply')=="Ok")
		{
			header('Location: '.URL.'home/');
		}
		elseif(GET('reply')=="InvalidLogin")
		{
			$this->view->noti=msg('InvalidLogin');
		}
		elseif(GET('reply')=="AccountBlock")
		{
			$this->view->noti=msg('AccountBlock');
		}
			
    
        $this->view->render('index');
    }

}

